<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "trip_log".
 *
 * @property integer $id
 * @property string $orderno
 * @property string $username
 * @property string $phone
 * @property string $logitude
 * @property string $latiude
 * @property string $opt_time
 */
class TripLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'trip_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['logitude', 'latiude'], 'number'],
            [['opt_time'], 'safe'],
            [['orderno'], 'string', 'max' => 20],
            [['username'], 'string', 'max' => 50],
            [['phone'], 'string', 'max' => 11],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'orderno' => '订单号',
            'username' => '配送员姓名',
            'phone' => '配送员手机',
            'logitude' => '配送员实时经度',
            'latiude' => '配送员实时纬度',
            'opt_time' => '操作时间',
        ];
    }
}
